package me.shurufa.activities;

import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;

import me.shurufa.R;
import me.shurufa.fragments.ChatMessageFragment;
import me.shurufa.fragments.MessageFragment;

/**
 * 作者 : andy
 * 日期 : 16/3/13 21:22
 * 邮箱 : andyxialm@gmail.com
 * 描述 : 消息通知界面
 */
public class MessageActivity extends BaseActivity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        activity_layout_res = R.layout.activity_message;
        super.onCreate(savedInstanceState);

        initView();
        initFragment();
    }

    private void initView() {
        titleTextView.setText(R.string.message);
    }

    private void initFragment() {
        FragmentManager fm = getSupportFragmentManager();
        FragmentTransaction ft = fm.beginTransaction();
        ft.replace(R.id.fragment_container, new MessageFragment());
        ft.commit();
    }
}
